//
//  LocationHandler.h
//  EarnMoneyPlatform
//
//  Created by 航汇聚科技 on 2018/7/16.
//  Copyright © 2018年 Yi Zhou. All rights reserved.
//


#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
NS_ASSUME_NONNULL_BEGIN

static NSString *locationLatitude = @"latitude";
static NSString *locationLongitude = @"longitude";
static NSString *locationName = @"locationName";
static NSString *locationThoroughfare = @"locationThoroughfare";
static NSString *locationSubThoroughfare = @"locationSubThoroughfare";
static NSString *locationLocality = @"locationLocality";
static NSString *locationSubLocality = @"locationSubLocality";
static NSString *locationISOcountryCode = @"locationISOcountryCode";
static NSString *NOTFICATION_LOCATIONALLINFO = @"LOCATIONALLINFO";
@interface LocationHandler : NSObject<CLLocationManagerDelegate>

@property (nonatomic, copy, readonly) NSString *locationInfo;
@property (nonatomic, strong, readonly) NSDictionary *locationAllInfo;

@property (nonatomic, strong) CLLocationManager *locationManager;

+ (instancetype)defaultLocationHandler;

- (BOOL)isAuthLocation;
- (void)requestLocationAuthorization;
- (void)startUpdatingLocation;

@end

NS_ASSUME_NONNULL_END
